package cn.iune.backcenter.author.sysinfo;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface ISysInfoDao {
	
	public void insert(SysInfo obj);
	
	public void delete(String fID);
	
	public SysInfo update(SysInfo obj);

	public SysInfo getByID(String fID);

	public List<SysInfo> getAll();
	
	public List<SysInfo> getRoots(String appId);
	
	int getRootCount(String appId);
	
	public List<SysInfo> getChilds(String fParent);
	
	public SysInfo getByNo(String systemCode);


//	JSONObject queryTreeByOrgID(JSONObject data) throws Throwable;

	public List<SysInfo> getChildren(String fParent);

	int getChildCount(String fParent);

	List<SysInfo> getPagList(String appId);

	JSONObject query(JSONObject data) throws SQLException;

	List<SysInfo> getAppList();

	List<SysInfo> getAppList(String appId);

	List<SysInfo> getPagList();

	public JSONObject create(JSONObject param);

	JSONObject getAppListAddOrg(String appId, String orgID) throws SQLException;

	JSONObject getTreeMenu(String appId, String orgID) throws SQLException;


}
